package ch09.shili;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;

public class S10_C {

    public static void main(String[] args) {
        //byte 1 short 2 int 4
        try(InputStream is = new FileInputStream("data/s10.data")){
            byte[] arr = new byte[is.available()];
            is.read(arr);
            System.out.println(Arrays.toString(arr));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
